﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommunicationProtocol
{
    class ProtocolFormat
    {
        public static string[,] getProtocolFormat(string protocolType)
        {
            string[,] dd;
            if (protocolType.Equals("SUB_10GOEO"))
            {
                dd = new string[,]
                {
                    {"SN","w","8","",""},
                    {"Temperature","u1","2","",""}
                };
                return dd;
            }
            return null;
        }
    }

    class FormatType
    {
        public string name;//参数名称
        public string type;//参数类型
        public int length;//byte长度
        public string unit;//单位
        public string special;//特殊处理，调用特殊方法解析
    }
}
